<div class="row">
<h4><?php echo $cam['label']; ?></h4>
<h5>device name: <?php echo $cam['device_name']; ?></h5>
<div class="span4">
<a href="<?php echo $this->createAbsoluteUrl('/site/camshot/',array('id'=>$cam['id'])); ?>" class="btn btn-success">Update Image</a><br>
<?php echo $image; ?>
</div>
<div class="span4">
<table class="table">
<thead>
<tr>
<th>id</th>
<th>datetime</th>
<th>display</th>
</tr>
<tbody>
<?php
$wis = WebcamImage::model()->findAllByAttributes(array('device_id'=>$cam['id']),array('limit'=>'15','order'=>'id desc'));
foreach ($wis as $i => $wi ) {
?>
<tr>
<td><?php echo $wi->id; ?></td>
<td><?php echo $wi->datetime; ?></td>
<td><?php echo "link"; ?></td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
</div>
